package com.huimin.merchant.convert;

import com.huimin.merchant.dto.AppDTO;
import com.huimin.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author amx
 * @date 2020/12/3 16:10
 */
@Mapper
public interface AppConvert {

	AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

	AppDTO entity2dto(App entity);

	App dto2entity(AppDTO dto);

	List<AppDTO> listentity2dto(List<App> app);


}

